/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.wider.foundation.gtr;

/**
 *
 * This class stands for Generic TransceiveR, an unified implementation of communication
 * channels for protocols.
 * @author William
 */
public class GTR {
    public interface ReceiverImpl {
        public void receive(String msg);
    }

    private ReceiverImpl    Receiver;

    public void addReceiver(ReceiverImpl UserReceiver){
        Receiver = UserReceiver;
    }

    public void testReceiver(String msg){
        Receiver.receive(msg);
    }
}
